/*******************************************************************************
 * Copyright (c) 2010, 2030 www.mahao.cn
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 *******************************************************************************/
package cn.itlaobing.springmvc.controller;

import java.util.Date;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/** 
 * ClassName: HelloController <br/> 
 * Function: TODO 功能描述 <br/> 
 * date: 2017年5月15日 上午10:28:04 <br/> 
 * 
 * @author Mmmmm 
 * @version  
 * @since JDK 1.8 
 */
@Controller
public class HelloController {
	
	@RequestMapping("/index")
	public String sayHello(Model model){
		model.addAttribute("msg", "hello springmvc ! "+new Date());
		return "index";
	}
}
